<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home extends MY_Controller {

    public function __construct()
    {
        parent::__construct();
        $this->layout->setLayout('backend/index');
        $session_data = $this->session->userdata('logged_in');
        $usergroup_id = $session_data['usergroup_id'];
        if ($usergroup_id!=1) redirect('../petshop');
    }
    public function index(){
        $data['title']='Home';
        $data['seo']['keywords']='';
        $data['seo']['description']='';
        $this->layout->view('backend/layout/index', $data);

    }
}
